﻿using Common.AutofaExt;
using IService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AutofacApi.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class SeventhController : ControllerBase
    {
        private readonly IPhone _iphone;

        public SeventhController(IPhone phone)
        {
            _iphone = phone;
        }

        [HttpGet]
        public string Index()
        {
            _iphone.Text();
            _iphone.Call();
             
             _iphone.QueryUser(new ParameterInfo()
            {
                Id = 1,
                Address = "浙江金华",
                Age = 18,
                Name = "张三",
                before="修改之前的数据",
                after="修改之后的数据",
                msg="部分修改"
            });

            return "";

        }

    }
}
